import type { RouteRecordRaw } from "vue-router"

import HomeView from '@/views/Home/index.vue';
import CategoryView from '@/views/Category/index.vue';
import CartView from '@/views/Cart/index.vue';
import MineView from '@/views/Mine/index.vue';
import logins from "@/views/Logins/routes";
import ListView from "@/views/List/index.vue";
import DetailView from "@/views/Detail/index.vue"
// MineRouteRawArray
const routes: MineRouteRawArray = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  }, {
    path: "/list",
    name: "list",
    component: ListView,
  }, {
    path: "/detail",
    name: "detail",
    meta:{requiredAuth:true},
    component: DetailView,
  }, {
    path: '/category',
    name: 'category',
    component: CategoryView
  }, {
    path: '/cart',
    name: 'cart',
    component: CartView
  }, {
    path: "/mine",
    name: "mine",
    component: MineView,
  },
  ...logins,
]

export default routes;